import { Model } from '../core';
import { DataService } from '../core/DataService';

export interface Access extends Model {
	code: string;
	detail: string;
}

class AccessService extends DataService<AccessService, Access> {
	protected create(): AccessService {
		return this.initTokenInstance('access') as AccessService;
	}
}

export const accessService = new AccessService();
